from django.contrib import admin

from .models import Content, User


class UserAdmin(admin.ModelAdmin):
	list_display = ('nickname', 'account', 'uid', 'createTime')


class ContentAdmin(admin.ModelAdmin):
	list_display = ('cid', 'read', 'user', 'time', 'content')
	list_filter = ['read', 'user']


admin.site.register(User, UserAdmin)
admin.site.register(Content, ContentAdmin)
